import http from '@/assets/js/http';

// 生成模型
export const createModel = (data) => http.post('/api/user/createModel', data);

// 获取模型列表
export const getModelList = (data) => http.post('/api/school/modelList', data);

// 获取模型类型
export const getModelTypeList = () => http.post('/api/school/modelType');

// 模型详情
export const getModelDetail = (data) => http.post(`/api/school/modelDetail`, data);

// 模型删除
export const modelDelete = (data) => http.post(`/api/school//modelDelete?model_id=${data.model_id}`);

// 作品点赞
export const modelLike = (data) => http.post(`/api/user/like`, data);

// 作品收藏
export const modelCollect = (data) => http.post(`/api/user/collect`, data);

// 作品点评
export const modelComment = (data) => http.post(`/api/user/modelScore`, data);

//作品下载
export const download = (data) => http.post(`/api/user/download`, data);